import home from "../views/home/index.vue";
import login from "../views/login/index.vue";
import editor from "../views/editor/index.vue";

const routes = [
  { path: "/", redirect: "/home" },
  {
    path: "/home",
    name: "home",
    component: home,
  },
  {
    path: "/editor",
    name: "editor",
    component: editor,
  },
  {
    path: "/editor/:page",
    name: "editor",
    component: editor,
  },
  {
    path: "/login",
    name: "login",
    component: login,
  },
];
export default routes;
